<?php get_header(); ?>
	<div class="container-fluid">
	<!-- Sidebar-Left -->
	<div class="sidebar">
        <div class="well">
          <h5>Manage Authors</h5>
          <ul>
            <li><a href="">Authors</a></li>
            <li><a href="index.php?add">Add New</a></li>
            <li><a href="#">Link</a></li>
            <li><a href="#">Link</a></li>
          </ul>
          <h5>Sidebar</h5>
          <ul>
            <li><a href="#">Link</a></li>
            <li><a href="#">Link</a></li>
            <li><a href="#">Link</a></li>
            <li><a href="#">Link</a></li>
            <li><a href="#">Link</a></li>
            <li><a href="#">Link</a></li>
          </ul>
          <h5>Sidebar</h5>
          <ul>
            <li><a href="#">Link</a></li>
            <li><a href="#">Link</a></li>
          </ul>
        </div>
      </div>
	  <div class="content">
			<h2>Search Results</h2>
			<form action="" method="post">
				<table class="zebra-striped">
					<thead>
						<tr>
							<th>Name</th>
							<th></th>
							<th></th>
						</tr>
					</thead>
					<tbody>
				
						<?php foreach($jokes as $joke): ?>
						<tr>
							<input type="hidden" name="id" value="<?php echo $joke['id']; ?>" />
							<td><?php echo $joke['joketext']; ?></td>
							<td width="5%"><a href="index.php?action=Delete&id=<?php echo $joke['id'];?>" class="btn">Delete</a></td>
						<!--	<td width="5%"><input class="btn" type="submit" name="action" value="Edit"  /></td> -->
							<td width="5%"><a href="index.php?action=Update&id=<?php echo $joke['id']; ?>" class="btn">Edit</a></td>
							<!--<td width="5%"><input class="btn" type="submit" name="action" value="Delete"  /></td>
							<td width="5%"><input class="btn" type="submit" name="action" value="Edit"  /></td>-->
						</tr>
						<? endforeach; ?>
					
					</tbody>
				
				</table>
			</form>
		</div>
	</div>
</body>
</html>